package com.mkr.service;

import com.mkr.entity.Book;
import com.mkr.entity.Page;

import java.util.List;

/**
 * @author mkr
 * @version V1.0
 * @Project BookApp
 * @Package com.mkr.service
 * @Description:
 * @Date 2022/5/14 15:23
 */
public interface BookService {

    //获取所有图书信息
    List<Book> getAll();

    //添加图书
    boolean addOne(Book book);

    //删除图书
    boolean deleteOne(String bookId);

    Book selectOne(String bookId);

    boolean updateOne(Book book);

    List<Book> findAllPage(Page page);

    int findAllPageCount();
}
